package com.dlg.exchange.gateway.config;


import com.dlg.common.checksum.ByteCheckSum;
import com.dlg.common.checksum.ICheckSum;
import com.dlg.common.codec.BodyCodecImpl;
import com.dlg.common.codec.IBodyCodec;
import io.vertx.core.Vertx;
import lombok.Getter;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Log4j2
@Getter
@Configuration
public class GatewayConfig {

    @Bean
     IBodyCodec bodyCodec(){
        return  new BodyCodecImpl();
    };

    @Bean
     ICheckSum getCS(){
        return new ByteCheckSum();
    }

     @Bean
     Vertx vertx(){
        return Vertx.vertx();
    }

}
